package com.xmb.wcapi.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xmb.wcapi.config.BigDecimalSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class QualityData {

    private String times;

    @TableField(exist = false)
    private String stateTime;

    /**
     * 工单号
     */
    private String lngWorkLoadNo;

    /**
     * 制程
     */
    private String strDepartmentName;
    /**
     * 品名
     */
    private String strGoodsName;
    /**
     * 东矩
     */
    private String material;

    /**
     * 纬创料号
     */
    private String cusMaterial;
    /**
     * 机种
     */
    private String typeOfMachine;
    /**
     * 投入数
     */
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal invest;

    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal planSum;
    /**
     * 待处理数
     */
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal pending;
    /**
     * 累计待处理数
     */
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal pendingCumulative;
    /**
     * 良品数
     */
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal nonDefective;
    /**
     * 不良品数
     */
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal defectiveProducts;
    /**
     * 不良分布
     */
    private String poorDistribution;
    /**
     * 良率
     */
    private String percentage;

    private String typeName;

    /**
     * 前制程料号
     */
    private String qzclh;

    @TableField(exist = false)
    private Long qty;

    /**
     * 班次
     */
    @TableField(exist = false)
    private String tour;

    /**
     * 设备名称
     */
    @TableField(exist = false)
    private String deviceName;

}
